using System.Collections.Generic;
using UnityEngine;
using Plugin.Tool;

public class SkeletonSword : GroundEnemy
{


    protected override void Awake()
    {
        base.Awake();
    }
    protected override void Start()
    {
        base.Start();
    }

    protected override void Update()
    {
        base.Update();
    }


    void Die_Enter()
    {
        fsm.ClearLastState();

        anim.speed = 0;
        cd.enabled = false;
        ZTimer.ClearTimer(this);

        rb.velocity = new Vector2(0, 20);
        FreezeTime(true);
        ZTimer.SetTimeout(0.3f, () => rb.velocity = new Vector2(0, 0));
    }
}
